<div class="wrap-editor">
  <div r-hide={isHideFullButton} class="fullScreen" title="全屏" on-click={this.doFullScreen($event)}><i
    class="u-icon-spread-normal"></i></div>
  <table class="m-tb m-tb-editor m-tb-editor-array">
    <thead>
    <tr>
      <th>数组元素类型</th>
      <th>生成规则</th>
      <!--<th>验证规则</th>-->
      <th>描述</th>
    </tr>
    </thead>
    <tbody>
    {#list params as p}
    <tr>
      <td>
        <DatatypeSelect ref="sel" pid={pid} type={p.type} typeName={p.typeName} isArray={false} format={format}
                        hasCreate={hasCreate} isolate on-change={this._onSelectChange($event,p_index)} noArray={true}
                        noObject={noObject}></DatatypeSelect>
      </td>
      <td><input title={p.genExpression} type="text" class="u-input u-input-exp" readonly r-model={p.genExpression}
                 on-click={this.createExp(p_index,'genExpression')}/></td>
      <!--<td><input title={p.valExpression} type="text" class="u-input u-input-exp" readonly r-model={p.valExpression} on-click={this.createExp(p_index,'valExpression')} /></td>-->
      <td><input title={p.description} type="text" class="u-input" r-model={p.description}/></td>
    </tr>
    {#if p.isObject}
    <tr>
      <td colspan="6">
        <div class="no-name-datatype">
          <haxiEditor params={p.params} noObject={true} isHideFullButton={true} hasCreate={false} pid={pid} format={0}
                      hasTip={false}></haxiEditor>
        </div>
      </td>
    </tr>
    {/if}
    {/list}
    </tbody>
  </table>
  <div class="operation">
    <a class="u-btn u-btn-import" on-click={this.import('json')}>从JSON导入</a>
    <a class="u-btn u-btn-import" on-click={this.import('interface')}>从接口导入</a>
  </div>
</div>
